package com.dingding.dubbo.consumer;

import com.dingding.dubbo.framework.ProxyFactory;
import com.dingding.dubbo.provider.api.HelloService;

import java.io.IOException;

/**
 * @program: spring-learning
 * @description:
 * @author: liugongding
 * @create: 2022-01-13 17:13
 **/
public class Consumer {

    public static void main(String[] args) throws IOException {

        HelloService helloService = ProxyFactory.getProxy(HelloService.class);
        String hellworld = helloService.sayHello("hellworld");
        System.out.println(hellworld);
    }


}
